package com.synnex.wms.service;
/**
 * 投诉 接口实现类，service
 * */

import com.synnex.wms.mapper.TousuMapper;
import com.synnex.wms.pojo.Tousu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TousuService {

	@Autowired
	private TousuMapper TousuMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return TousuMapper.deleteByPrimaryKey(id);
	}

    public int insert(Tousu record){
    	return TousuMapper.insert(record);
    }

    public int insertSelective(Tousu record){
    	return TousuMapper.insertSelective(record);
    }

    public Tousu selectByPrimaryKey(Integer id){
    	return TousuMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Tousu record){
    	return TousuMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Tousu record){
    	return TousuMapper.updateByPrimaryKey(record);
    }
    
    //查询所有
    public List<Tousu> selectBy(){
    	return TousuMapper.selectBy();
    }
    
    public List<Tousu> showlist(Tousu Tousu){
    	return TousuMapper.showlist(Tousu);
    }
    public int pagecount(Tousu Tousu){
    	return TousuMapper.pagecount(Tousu);
    }
    
    
}
